  <div class="item"><%=h _("Event") %></div>
  <div class="data">
    <% bol = true %>
    <% i = 1 %>
    <% r = 3 %>
    <table>
      <% Event.find(:all, :order => 'id').each do |e| %>
        <%= '<tr>' if i == 1 %>
        <td>
	  <% if Gift.count(:conditions => ['event_id = ?', e.id]) == 0 %>
	    <%= _(e.name) %>
	  <% else %>
	    <%= link_to _(e.name), :controller => :item, :action => :event, :id => e.id %>
	  <% end %>
	</td>
        <%= '</tr>' if i == r %>
        <% if i == r then i=1 else i += 1 end %>
        <% bol = false %>
      <% end %>
      <% (r+1-i).times { %>
      <td></td>
      <% } %>
      <%= '</tr>' if i != 1 %>
    </table>
  </div>
